import { Column, DeleteDateColumn, Entity, PrimaryColumn } from "typeorm";

@Entity("at_module")
export class ModuleEntity {
  @PrimaryColumn({ type: "uuid", generated: "uuid" })
  id: string;

  @Column({ type: "varchar", name: "icon" })
  icon: string;

  @Column({ type: "varchar", name: "title" })
  title: string;

  @Column({ type: "varchar", name: "description" })
  description: string;

  @Column({ type: "uuid", name: "project_id" })
  productId: string;

  @Column({ type: "uuid", name: "user_id" })
  userId: string;

  @Column({ type: "timestamptz", name: "created_at" })
  createdAt: Date;

  @Column({ type: "varchar", name: "created_by" })
  createdBy: string;

  @Column({ type: "timestamptz", name: "updated_at" })
  updatedAt: Date;

  @Column({ type: "varchar", name: "updated_by" })
  updatedBy: string;

  @DeleteDateColumn({name: "deleted_at"})  deletedAt: Date;
}
